package com.panfeng.xcloud.dao.assets.entity;

import com.panfeng.xcloud.common.core.utils.KeyContactUtil;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CoinList implements Serializable {
    private Integer id;

    private String destinationCoin;

    private String sourceCoin;

    private String url;

    private BigDecimal decimal;

    private BigDecimal contractCodeValue;

    private Integer exchangeType;

    private Integer status;

    private Date createTime;

    private Date modifyTime;

    private String direction;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDestinationCoin() { return destinationCoin; }

    public void setDestinationCoin(String destinationCoin) {
        this.destinationCoin = destinationCoin;
    }

    public String getSourceCoin() {
        return sourceCoin;
    }

    public void setSourceCoin(String sourceCoin) {
        this.sourceCoin = sourceCoin;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public BigDecimal getDecimal() {
        return decimal;
    }

    public void setDecimal(BigDecimal decimal) {
        this.decimal = decimal;
    }

    public BigDecimal getContractCodeValue() {
        return contractCodeValue;
    }

    public void setContractCodeValue(BigDecimal contractCodeValue) {
        this.contractCodeValue = contractCodeValue;
    }

    public Integer getExchangeType() {
        return exchangeType;
    }

    public void setExchangeType(Integer exchangeType) {
        this.exchangeType = exchangeType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getDirection() { return direction; }

    public void setDirection(String direction) { this.direction = direction; }

    public String getCollectUrlMapKey() {
        return KeyContactUtil.getCollectUrlMapKey(destinationCoin, direction);
    }

}